/**
 * ForwardStoreService.java
 * 2008-3-13
 * @author 屈甲康
   qujiakang@gmail.com
 */
package org.jackysoft.service;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Collection;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jackysoft.data.IDataProvider;
import org.jackysoft.entity.Department;
import org.jackysoft.entity.ForwardStore;
import org.jackysoft.entity.Product;
import org.jackysoft.entity.ProductType;
import org.joda.time.DateTime;

/**
 * @author 屈甲康
 * QQ285799123
 * 
 */
public interface ForwardStoreService extends IDataProvider<String,ForwardStore>{
	final static Log logger = LogFactory.getLog(ForwardStoreService.class);	
    /**
     * 导入结存
     * @param file excel 文件
     * @param year 
     * @param month
     * */
	List<String> importForwardStore(File file,int year,int month) throws FileNotFoundException;
    /**
     * 获取结存
     * */
	ForwardStore get(Department department,int year,int month,Product owner,ProductType pdtType);
	
	/**
	 * @param department 结存部门
	 * @param date 报表日期
	 * @param owner 所属产品
	 * @return 结存信息
	 * 
	 * */
	ForwardStore get(Department department,DateTime date,Product owner,ProductType pdtType);
	/**
	 * 
	 *获取结存
	 * 
	 * */
	
	
	
    Collection<ForwardStore> gets(Department department,int year,int month);
    void clear(Department department);
    void clear(int year ,int month);
    void clear(Department department,int year,int month);
}
